import request from '@/utils/request'

export function memberList(params) {
  return request({
    url: '/member/member/find',
    method: 'get',
    params
  })
}

export function listAllMember() {
  return request({
    url: '/member/member/list',
    method: 'get',
  })
}

export function getMember(id) {
  return request({
    url: `/member/member/getById/${id}`,
    method: 'get',
  })
}

export function saveMember(data) {
  return request({
    url: '/member/member/save',
    method: 'post',
    data
  })
}

export function updateMember(data) {
  return request({
    url: '/member/member/update',
    method: 'post',
    data
  })
}

export function deleteMember(ids) {
  return request({
    url: '/member/member/delete',
    method: 'post',
    data: ids
  })
}
